<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<style type="text/css">
@import url(css/style.css);

@import url(css/last_change.css);
</style>

<script src="js/jquery.min.js"></script>

<ui:composition>
	<div class="wrapper_header">
		<div class="lay_base header_pattern"></div>
		<div class="lay_base header_shadow"></div>
		<div id="header">
			<div class="container_LogoSearch">
				<h:graphicImage height="100" value="../../../images/JSMC.png"
					styleClass="headerimg">
					<div class="container-fluid">
						<div class="navbar navbar-fixed-top">
							<div class="navbar-inner">
								<div class="container-fluid">
									<a class="brand" href="#">
										<h:outputText rendered="#{sessionScope['user'] ne null}"
										 value="#{sessionScope['user'].branch.school.schoolName}-#{sessionScope['user'].branch.branchTitle}"/>
										<h:outputText rendered="#{sessionScope['admin'] ne null}" value="SaaS Admin"/>
									</a>
									<div class="btn-group pull-right">
										<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
											<i class="icon-user"></i>
											<h:outputText rendered="#{sessionScope['user'] ne null}" value="#{sessionScope['user'].name}"/>
											<h:outputText rendered="#{sessionScope['admin'] ne null}" value="#{sessionScope['admin'].name}"/> 
											<span class="caret"></span>
											
										</a>
										<ul class="dropdown-menu">
											<h:form> <li><h:commandLink value="Sign Out" action="#{loginBean.logOut}"></h:commandLink></li> </h:form> 
										</ul>
									</div>
								</div>
							</div>
						</div>
					</div>
				</h:graphicImage>
			</div>
			<!-- end container_LogoSearch -->
			<div style="margin-left: 20px">
				<h:form styleClass="menuform">
					<p:menubar rendered="#{sessionScope['admin'] ne null}" style="width:910px">
						<p:menuitem value="Home" url="home.xhtml" icon="ui-icon-home" />
						<p:menuitem value="Create Customer" url="AddCustomer.xhtml" />
						<p:menuitem value="Add Branch" url="AddBranch.xhtml" />
						<p:menuitem value="History" url="viewHistory.xhtml" />
						<p:menuitem value="Enable/Disable" url="CustomerStatusUpdate.xhtml" />
						<p:menuitem value="Recharge" url="RechargeCustomer.xhtml" />
						<p:menuitem value="Change Password" url="UpdatePassword.xhtml" />
					</p:menubar>
					
					<p:menubar rendered="#{sessionScope['user'] ne null}" style="width:910px" >
						<p:menuitem value="Home" url="CustomerHome.xhtml" icon="ui-icon-home" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Make Timetable" url="makeTimetable.xhtml"/>
						<p:menuitem value="View Timetable" url="viewTimeTable.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Send Alert" url="SendAlert.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 3}" value="Send Alert" url="SendAlert.xhtml" />
						
						
						<p:submenu label="Manage" rendered="#{sessionScope['user'].role.roleId eq 2}"  >
						 
						<p:submenu label="Manage Classes">
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Add Class" url="AddClass.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Change Status" url="ClassStatusUpdate.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Add Section" url="AddSection.xhtml" />
						</p:submenu>
						
						<p:submenu label="Manage Courses">
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Add Course" url="AddCourse.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Change Status" url="CourseStatusUpdate.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="View Courses" url="ViewCourses.xhtml" />
						
						</p:submenu>
						<p:submenu label="Manage Rooms" >
						
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Add Room" url="AddRoom.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Change Status" url="RoomsAvailabilityUpdate.xhtml" />
						
						</p:submenu>
						
						<p:submenu label="Manage Students" >
						
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Add Student" url="AddStudent.xhtml" title="Add Students" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Change Status" url="StudentStatusUpdate.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="View Students" url="ViewStudents.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Promote Student" url="PromoteStudent.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Change Password" url="UpdateStudentPassword.xhtml" />
						</p:submenu>
						
						<p:submenu label="Manage Teachers" >
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Add Teacher" url="AddTeacher.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Change Status" url="TeacherStatusUpdate.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="View Teachers" url="ViewTeachers.xhtml" />
						<p:menuitem rendered="#{sessionScope['user'].role.roleId eq 2}" value="Change Password" url="UpdateTeacherPassword.xhtml" />
						</p:submenu> 
						
						</p:submenu>
						<p:menuitem value="Forum" url="Forum.xhtml" />
					</p:menubar>
					
				</h:form>
			</div>
			
			<!-- end container_menu -->
		</div>
		<!-- end header -->
		<div class="bar_separate header_separate"></div>
	</div>
	<!-- wrapper_header -->



</ui:composition>
</html>